Running the Win32 ports of SciTECO using Wine

SciTECO Windows builds will also work in Wine. This is useful when cross-compiling, developing and debugging the Windows port under Linux.

To run the PDCurses win32 port (plain console mode application), you must launch the application using wineconsole and specify the LINES and COLS environment variables (may be a bug in Wine or PDCurses):

$ LINES=25 COLS=80 wineconsole sciteco.exe

This will create an X11 window emulating the Windows console. Specifying wineconsole --backend=curses enables a console emulation using Curses. In either case, SciTECO will not react to window size changes and stay at 25 lines and 80 columns.

Cross-debugging under Wine

It is possible to cross-debug the Windows port under Linux using the cross-gdb and native win32 gdbserver.exe that comes with your MinGW64 toolchain. To do that, simply run the gdbserver.exe under Wine like this:

$ LINES=25 COLS=80 wineconsole /usr/share/win32/gdbserver :8000 sciteco.exe

This also works with stripped binaries. In another console load the sciteco.exe (with debugging symbols!) into the cross debugger (usually i686-w64-mingw32-gdb) and connect to the server via target remote :8000.

Known Bugs

For more details, see TODO.


14B	Sep 28 21:20 ../